import { Button } from 'antd';
import { EModalType } from '../../exports';
import { useMainModal } from '@hdtd/components/test';

const AA = () => {
  const [mOpen] = useMainModal<EModalType>()!;

  return (
    <div>
      我是 AA
      <Button onClick={() => mOpen(EModalType.BB)}>打开BB</Button>
    </div>
  );
};

export default AA;
